import request from '@/utils/request'

// CPU使用率TOP10
export function orderByListAppManagement(query) {
  return request({
    url: '/system/appManagement/orderByList',
    method: 'get',
    params: query
  })
}

// 查询管理列表
export function listAppManagement(query) {
  return request({
    url: '/system/appManagement/list',
    method: 'get',
    params: query
  })
}

// 查询管理详细
export function getAppManagement(id) {
  return request({
    url: '/system/appManagement/' + id,
    method: 'get'
  })
}

// 新增管理
export function addAppManagement(data) {
  return request({
    url: '/system/appManagement',
    method: 'post',
    data: data
  })
}

// 修改管理
export function updateAppManagement(data) {
  return request({
    url: '/system/appManagement',
    method: 'put',
    data: data
  })
}

// 删除管理
export function delAppManagement(id) {
  return request({
    url: '/system/appManagement/' + id,
    method: 'delete'
  })
}
